﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.ComponentModel.Composition;
//using System.Windows.Forms;

//namespace SoundEdge.WinControls.Settings
//{
//    [Export(typeof(INAudioDemoPlugin))]
//    [Export(typeof(OutputDeviceSettingsPanelPlugin))]
//    public class OutputDeviceSettingsPanelPlugin : INAudioDemoPlugin
//    {
//        public string Name
//        {
//            get { return "Audio File Playback"; }
//        }

//        [ImportMany(typeof(IOutputDevicePlugin))]
//        public IEnumerable<IOutputDevicePlugin> OutputDevicePlugins;

//        public OutputDeviceSettingsPanelPlugin()
//        {

//        }

//        //public AudioPlaybackPanelPlugin([ImportMany]IEnumerable<IOutputDevicePlugin> outputDevicePlugins)
//        //{
//        //    _outputDevicePlugins = outputDevicePlugins;
//        //}

//        // using ExportFactory<T> rather than Lazy<T> allowing us to create 
//        // a new one each time
//        // had to download a special MEF extension to allow this in .NET 3.5
//        //[Import]
//        //public ExportFactory<AudioPlaybackPanel> PanelFactory { get; set; }

//        public Control CreatePanel()
//        {
//            return new OutputDeviceSettingsPanel(OutputDevicePlugins);
//        }
//    }
//}
